package com.clannad.eduservice.feign;

import com.clannad.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    @DeleteMapping("/eduvod/video/removeAliyunVideo/{id}")
    R removeAliyunVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deleteBatch")
    R deleteBatch(@RequestParam("videoIds") List<String> videoIds);
}
